﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MediaPlayer.Interfaces;
using Microsoft.Win32;

namespace MediaPlayer.Messages
{
    public class WPFMessageService : IMessageService
    {
        public void ShowDialog(string title, string msg)
        {
            System.Windows.MessageBox.Show(msg, title);
        }


        public string OpenFilesDialog()
        {
            OpenFileDialog opf = new OpenFileDialog();
            opf.ShowDialog();
            return opf.FileName;
        }

        public List<string> OpenMultiFileDialog()
        {
            OpenFileDialog opf = new OpenFileDialog();
            opf.Multiselect = true;
            opf.ShowDialog();
            return opf.FileNames.ToList();
        }

        public string SaveFileDialog()
        {
            SaveFileDialog sfd = new SaveFileDialog();
            sfd.ShowDialog();
            return sfd.FileName;
        }
    }
}
